<template>
  <PcPage4 v-if="isPC" :locate="locate"></PcPage4>
  <WebPage4 v-else :locate="locate"></WebPage4>
</template>

<script>
import PcPage4 from '@/views/pc/page4/index.vue'
import WebPage4 from '@/views/web/page4/index.vue'
import { useConfig } from '@/stores/config.js'

export default {
  name: 'homeIndex',
  components: {
    PcPage4,
    WebPage4
  },
  data() {
    return {
      locate: null
    }
  },
  computed: {
    isPC() {
      return useConfig().isPc
    }
  },
  mounted() {
    // 获取路由参数
    const query = this.$route.query
    if (query && query.locate) {
      this.locate = query.locate
    }
  },
  methods: {}
}
</script>
<style lang="scss" scoped></style>
